Repository navigation
fix(aggregator): gate quota-current measuredAt with isIsoDate (#4987) - #4996
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 46 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
🤖 Agent note · Codex gate disposition (queue task 8161)
|
Fixes #4987 (queue task 8161).
isQuotaCurrentEntryandisQuotaCurrentWindowinpm-stack/aggregator/src/quota-current.tscheckedmeasuredAtwithtypeof === "string"only, whileresetsAtandcredentialExpiresAtin the same functions go throughisIsoDate. An impossible (2026-02-30,2026-04-31) or non-ISO (March 2, 2026)measuredAttherefore survived parsing and flowed verbatim into freshness classification and display.Change
measuredAt:typeof value.measuredAt === "string"→isIsoDate(value.measuredAt)measuredAt: same swapTests
New
describe("parseQuotaCurrent measuredAt gates (#4987)")intest/quota-current.test.ts:measuredAtis dropped; valid sibling survivesmeasuredAtis dropped without dropping valid sibling windows2024-02-29and normaltoISOStringstamps still validateLocal (laptop):
bun test test/quota-current.test.ts— 42 pass, 0 fail.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.